package OnJava8.operators;

/**
 * @Auther DRevelation
 * @Date 2020-05-18 下午 13:21
 * @Desc 源码
 *      public static Integer valueOf(int i) {
 *         if (i >= IntegerCache.low && i <= IntegerCache.high)
 *             return IntegerCache.cache[i + (-IntegerCache.low)];
 *         return new Integer(i);
 *     }
 */
public class Equivalence {
    public static void main(String[] args) {
        Integer n1 = 47;
        Integer n2 = 47;
        System.out.println(n1 == n2);
        System.out.println(n1 != n2);

        Integer n3 = 128;
        Integer n4 = 128;
        System.out.println(n3 == n4);
        System.out.println(n3 != n4);
    }
}
